//This will render the pyramids.
for (i=0;i<pyramids;i+=1) {
glLoadIdentity();									// Reset The Current Modelview Matrix
	glTranslatef(pyrx[i],0,pyrz[i]);						// Move Left 1.5 Units And Into The Screen 6.0
	glRotatef(pyrv[i],0,1,0);						// Rotate The Triangle On The Y axis ( NEW )
	glBegin(GL_TRIANGLES);								// Start Drawing A Triangle
		glColor3f(1,0,0);						// Red
		glVertex3f( 0, 1, 0);					// Top Of Triangle (Front)
		glColor3f(0,1,0);						// Green
		glVertex3f(-1,-1, 1);					// Left Of Triangle (Front)
		glColor3f(0,0,1);						// Blue
		glVertex3f( 1,-1, 1);					// Right Of Triangle (Front)
		glColor3f(1,0,0);						// Red
		glVertex3f( 0, 1, 0);					// Top Of Triangle (Right)
		glColor3f(0,0,1);						// Blue
		glVertex3f( 1,-1, 1);					// Left Of Triangle (Right)
		glColor3f(0,1,0);						// Green
		glVertex3f( 1,-1, -1);					// Right Of Triangle (Right)
		glColor3f(1,0,0);						// Red
		glVertex3f( 0, 1, 0);					// Top Of Triangle (Back)
		glColor3f(0,1,0);						// Green
		glVertex3f( 1,-1, -1);					// Left Of Triangle (Back)
		glColor3f(0,0,1);						// Blue
		glVertex3f(-1,-1, -1);					// Right Of Triangle (Back)
		glColor3f(1,0,0);						// Red
		glVertex3f( 0, 1, 0);					// Top Of Triangle (Left)
		glColor3f(0,0,1);						// Blue
		glVertex3f(-1,-1,-1);					// Left Of Triangle (Left)
		glColor3f(0,1,0);						// Green
		glVertex3f(-1,-1, 1);					// Right Of Triangle (Left)
		
	glEnd();
	
	}